package com.example.yingjiguanli_demo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yingjiguanli_demo.pojo.Posts;
import com.example.yingjiguanli_demo.pojo.Result;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author scj
 * @since 2024-11-04
 */
public interface IPostsService extends IService<Posts> {

    Result<T> addPosts(Posts posts, Integer userId);

    Result<List<Posts>> getPosts(int pageNum, int pageSize);

    Result<T> deletePosts(Integer id);

    Result<List<Posts>> getPostById(Integer id);
}
